<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/static/layuimini/lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/layuimini/css/public.css" media="all">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body>
<form id="userForm">
<div class="layui-form layuimini-form" lay-filter="add_ncc">

    <div class="layui-form-item">
        <label class="layui-form-label required">ID</label>
        <div class="layui-input-block">
            <input type="text" name="id" id="id" lay-verify="required" lay-reqtext="ID不能为空" placeholder="请输入ID" value="" class="layui-input layui-disabled">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">联系组名称</label>
        <div class="layui-input-block">
            <input type="text" name="name" id="name" lay-verify="required" lay-reqtext="联系人名称名称不能为空" placeholder="请输入联系人名称" value="" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">成员</label>
        <div  id="members" name="members" class="layui-input-block"></div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label required">钉钉url</label>
        <div class="layui-input-block">
            <input type="text" name="dingurl" id="dingurl" lay-verify="required" lay-reqtext="钉钉url不能为空" placeholder="请输入钉钉url作" value="" class="layui-input">
        </div>
    </div>

</div>
</form>

<script src="/static/layuimini/lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
<script src="/static/layui/sm_select/xm-select.js"></script>
<script>
    layui.use('form',function () {
        var form = layui.form;
        form.render();
    });

    var demo1 = xmSelect.render({
                el: '#members',
                name: 'members', //select name 在这里定义
                filterable: true,
                data: []
            })

    var test = {
        method1: function (data)
        {
            demo1.update({data:data});

        }
    }


</script>


</body>
</html>